﻿using EasyClassWEBAPI.EntityClass;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;

namespace EasyClassWEBAPI.Models
{
    public class User
    {
        [Key]
        public string UserAccount { get; set; }
        [Required]
        public string UserName { get; set; }
        [Required]
        public string Password { get; set; }
        [Required]
        public string Department { get; set; }
        public string Token { get; set; }

        public List<Post> Posts { get; set; }
        public List<StudyGroup> StudyGroups { get; set; }
    }
}
